package com.yc.mvc.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
// RequestMapping 定义在类上, 表示当前类所有方法的统一添加的路径前缀
@RequestMapping("page")
public class IndexAction1 {

    @RequestMapping("hello")
    public String hello(){
        return "你好中国!";
    }


}
